function getBaseURL(){
	var para = decodeURIComponent(window.location);
	if(para.indexOf("main.html")>0)
		return "../";
	else
	  return "http://ipc_local:8080/ipcm/";
}
function getWSURL(){
	var wsurl = "ws://"+window.location.host+CFG.app_ctx+"wst.do";
	return wsurl;
}
var CFG ={
	base_url: getBaseURL(),
//系统名称
	app_name:"EM",
	about: '<br><font color="blue">2012年5月</font>',
	app_ctx: "/ylbx/"
};